\begin{Exercise}[title={Linked List},difficulty=1]
\label{ex:linkedlist}
\Question
\label{ex:linkedlist q1}
Make use of the package \package{container/list} to create
a (doubly) linked list. Push the values 1, 2 and 4 to the list and then
print it.

\Question
Create your own linked list implementation. And perform the same actions
as in question \ref{ex:linkedlist q1}
\end{Exercise}

\begin{Answer}
\Question The following is the implementation of a program using doubly
linked lists from \package{container/list}.
\lstinputlisting[label=src:doubly-linked-list-container,caption=Doubly linked list using \package{container/list}]{ex-beyond/src/doubly-linked-list-container.go}

\Question The following is a program implementing a simple doubly
linked list supporting \type{int} values.
\lstinputlisting[label=src:doubly-linked-list,caption=Doubly linked list]{ex-beyond/src/doubly-linked-list.go}
\showremarks
\end{Answer}
